import axios from '@/assets/axios/axios'

/**
 * 
 * @param {*} obj 
 * @returns 
 */
export const PostSmsCode=(obj) => axios.post('smsCode',obj)


/**
 * 
 * @param {*} obj 
 * @returns password
 */
export const getLogin=(obj) => axios.post('login',obj)


/**
 * 
 * @param {*} obj 
 * @returns userInfo
 */
export const postPassword=(obj) => axios.post('password',obj)

/**
 * 
 * @returns user
 */
// 获取用户信息
export const getuserInfo=() => axios.get('userInfo')

/**
 * 
 * @returns 
 */
export const putUser=(obj) => axios.put('user',obj)


/**
 * 
 * @returns collect
 */
export const postImg=(obj) => axios.post('public/img',obj)


/**
 * @returns 
 */
export const getCollect=() => axios.get(`collect?page=1&limit=10&type=2&`)


/**
 * 
 * @param {*} id 
 * @returns collect/cancel
 */
export const getColl=(id)=>axios.get(`teacher/collect/${id}`)


/**
 * 
 * @param {*} id 
 * @returns 
 */
export const getCancel=(id)=>axios.put(`collect/cancel/${id}`)